<?xml version='1.0' encoding='UTF-8' ?>
<!--
    Document   : baseProperty
    Created on : Jan 28, 2012, 12:14:06 PM
    Author     : Oscar Ivan Prado
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:icecore="http://www.icefaces.org/icefaces/core"
                xmlns:ace="http://www.icefaces.org/icefaces/components"
                xmlns:ice="http://www.icesoft.com/icefaces/component">
    <ice:panelGroup>
        <center>
                <ui:insert name="options"/>            
            <ice:dataTable 
                id="#{tableName}" 
                value="#{values}"
                var="var" 
                width="100%" 
                border="0" 
                bgcolor = "white" rows="#{rows}">
                <ui:insert name="columns"/>
            </ice:dataTable>
            <ice:dataPaginator for="#{tableName}" paginator="true" fastStep="3" style="width:100%;"
                               paginatorMaxPages="4" rowsCountVar="rowsCount" displayedRowsCountVar="displayedRowsCount"
                               firstRowIndexVar="firstRowIndex" lastRowIndexVar="lastRowIndex" pageCountVar="pageCount"
                               renderFacetsIfSinglePage="true" pageIndexVar="pageIndex" immediate="false">
                <f:facet name="first">
                    <ice:graphicImage url="#{request.contextPath}/resources/images/paginator/arrow_first.png" style="border:none;" title="primera pagina"/>
                </f:facet>
                <f:facet name="last">
                    <ice:graphicImage url="/resources/images/paginator/arrow_last.png" style="border:none;" title="ultima pagina"/>
                </f:facet>
                <f:facet name="previous">
                    <ice:graphicImage url="/resources/images/paginator/arrow_previous.png" style="border:none;" title="anterior"/>
                </f:facet>
                <f:facet name="next">
                    <ice:graphicImage url="/resources/images/paginator/arrow_next.png" style="border:none;" title="siguiente"/>
                </f:facet>
            </ice:dataPaginator>
        </center>
    </ice:panelGroup>
</ui:composition>